@set EDITION=Release
@set OUTNAME=elk_installer

@echo %date% %time%

@echo.
@xcopy /E/H/C/I/Y install install_%EDITION%
@if not exist install_%EDITION%\packages\main\data (mkdir install_%EDITION%\packages\main\data)
@if not exist install_%EDITION%\packages\subprocess\data (mkdir install_%EDITION%\packages\subprocess\data)

@echo.
@copy /Y out\%EDITION%\elk.exe install_%EDITION%\packages\main\data
@copy /Y out\%EDITION%\elk-subprocess.exe install_%EDITION%\packages\subprocess\data

@echo.
@windeployqt install_%EDITION%\packages\main\data\elk.exe

@echo.
@xcopy /E/H/C/I/Y cef\%EDITION%\ install_%EDITION%\packages\main\data
@xcopy /E/H/C/I/Y cef\Resources\ install_%EDITION%\packages\main\data

@echo.
@binarycreator.exe -c install_%EDITION%\config.xml -p install_%EDITION%\packages out\%EDITION%\%OUTNAME%.exe -v
@rmdir /S/Q install_%EDITION%
pause
